//
//  GHUtils.h
//  GodHorses
//
//  Created by Mac on 2017/11/14.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OEUserModel.h"
#import "OEShopEasyModel.h"
@interface TMUtils: NSObject
//网络可用时候的回调

+ (UIView*)headerViewWithTitle:(NSString*)title;
+ (UINavigationBar *)navigationBar;
+ (UITabBar *)tabbar;
+ (CGFloat)navgationBarBootom;
+ (CGFloat)tabBarTop;
//随机颜色
+ (UIColor*)randColor;

+ (void)debugSimulationNetWorkWithHadle:(void (^)(NSInteger, NSMutableArray *))handle;
+ (void)sendNoJsonRequestWithUrl:(NSString*)url params:(NSDictionary*)params isPost:(BOOL)isPost handle:(void(^)(BOOL success,NSString * response))handle;

+ (STButton*)titleButtonViewWithTile:(NSString*)title showRightGo:(BOOL)showRightGo handle:(void(^)(void))handle;
//绿色按钮 和 更多
+ (STButton*)titleGreenButtonViewWithTile:(NSString*)title showRightGo:(BOOL)showRightGo handle:(void(^)(void))handle;

+ (UITextField*)textFiledWithLeftImage:(NSString*)leftImage placeHolader:(NSString*)placeHolader  rightView:(UIView*)rightView;
+ (UITextField*)textFiledWithLeftTitle:(NSString*)leftTitle placeHolader:(NSString*)placeHolader  rightView:(UIView*)rightView;


#pragma mark --七牛
+ (void)sendQiNiuWithImage:(UIImage*)image  handle:(void(^)(NSString* url))handle;/**< 上传一张图片 */
+ (void)sendQiNiuGifWithData:(NSData *)data handle:(void (^)(NSString *))handle;/**< 上传一张gif图片 */
+ (void)sendFileWithFilePath:(NSString*)path handle:(void(^)(NSString* url))handle;/**< 上传一个文件获取url */
+ (void)sendFileWithFilePathFormDateKey:(NSString*)path  handle:(void(^)(NSString* url))handle;/**< 上传一个文件获取url key值为 ios+时间戳.MP3*/
#pragma mark --net
+ (void)fetchMineUserInfo:(void(^)(OEUserModel * user))handle;
//去服务商
+ (void)gotoRuleViewController;
//强制更新地址
+ (void)forceUpdateLocation;
#pragma mark --逻辑
+ (void)user_goToSearchVCWithCat_id:(NSString*)cat_id;
+ (void)user_goToShopDetailVCWithShop_id:(NSString*)shopc_id;

+ (void)gotoShopHeaderWithModel:(OEShopEasyModel*)model;
//哪一个view，快速点击五次 跳转到开发者模式
- (void)viewResbondMonitorMode:(UIView*)view;

//调用面容指纹支付
//type1 验证机主， 2验证输入密码
+ (void)showFaceOrFingerPayType:(NSString*)type handle:(void(^)(void))successHandle inputPwdHandle:(void(^)(void))inputHandle errorHandle:(void(^)(void))errorHandle;
@end
